package com.group.three.mapper;

import com.group.three.entity.OrderDetailVO;
import com.group.three.entity.OrderLog;
import com.group.three.entity.OrderSimpleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OrderMapper {
    //所有订单列表
    List<OrderSimpleVO> queryByParams(int pageNum,int pageSize);
    //所有订单详情
    List<OrderDetailVO> getBySn(String orderSn);
    //修改订单价格
    int updatePrice(@Param("orderSn") String orderSn, @Param("orderPrice")Double orderPrice);
    //取消订单
    int cancelOrder(@Param("orderSn")String orderSn, @Param("reason")String reason);
    //修改收件地址
    int updateMemberAddress(@Param("orderSn")String orderSn,@Param("name")String name,@Param("mobile")String mobile,@Param("address")String address);
    //获取订单日志
    List<OrderLog> selectBuyerOrderItemLog(String orderSn);
    //订单发货
    int delivery(@Param("orderSn")String orderSn, @Param("logisticsNo")String logisticsNo, @Param("logisticsId")String logisticsId);
}
